import { _decorator, Component, Node, UITransform, Layout, AudioSource } from 'cc';
import { CreateImgs } from './CreateImgs';
import { GameManage } from './GameManage';
const { ccclass, property } = _decorator;

@ccclass('DifficultySelect')
export class DifficultySelect extends Component {
    @property(CreateImgs)
    createpic1:CreateImgs=null;
    @property(Node)
    scoreNode:Node=null;
    @property(Node)
    changes:Node=null;
    @property(Node)
    muteButton:Node=null;
    @property(GameManage)
    gm:GameManage=null;
    esay()
    {
        this.changes.active=true;
        this.createpic1.row=6;
        this.createpic1.column=6;
        this.gm.picNumber=6*6
        this.scoreNode.active=true;
        this.node.active=false;
        this.muteButton.active=true;
    }
    normal()
    {
        this.changes.active=true;
        this.createpic1.row=8;
        this.createpic1.column=8;
        this.gm.picNumber=8*8
        this.scoreNode.active=true;
        this.node.active=false;
        this.muteButton.active=true;
    }
    hard()
    {
        this.changes.active=true;
        this.createpic1.row=12;
        this.createpic1.column=16;
        this.gm.picNumber=12*16;
        this.scoreNode.active=true;
        this.node.active=false;
        this.muteButton.active=true;
    }
}

